package com.cy.personer.mapper;

import com.cy.personer.bean.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReportSxbMapper {
    public List<ReportItem> reportItemListSxb(@Param("user")User user,@Param("work") Work work ,@Param("state") State state);
    public List<ReportItem> reportItemListSxb1(@Param("userId")Integer userId,@Param("workId") Integer workId,@Param("stateId") Integer stateId,@Param("stateId1") Integer stateId1);
//    public List<Report> allreportList(@Param("cardNumber") String cardNumber, String userName, String WorkName, String deskName);
    public List<ReportItem> reportInformation(Integer reportId);
    public List<ReportItem> reportInformation1(Integer reportId);
    public boolean updateReportItemId(@Param("reportItemId") Integer reportItemId,@Param("stateId") Integer stateId);
    public boolean updateRemark(@Param("reportItemId") Integer reportItemId,@Param("remark") String remark);
    public boolean updateReportState(@Param("reportId") Integer reportId,@Param("stateId") Integer stateId);
    public boolean updateFinallyReport(Report report);
    public Report queryReport(Integer reportId);
    public List<Detail> findItemdetails(Integer itemId);
    public ReportItem getReportItem(Integer reportItemId);
    public Item getItem(Integer itemId);
    public List<ReportItem> reportItemByWorkId(Integer workId);
    public boolean updataUserMoney(User user);
    public boolean setReportItemWork(@Param("workId") Integer workId,@Param("checkTime") String checkTime,@Param("reportItemId") Integer reportItemId);public List<Report> allReport();
   public boolean setReportItemEnd(@Param("remarkTime") String remarkTime,@Param("reportItemId") Integer reportItemId );
   public List<Suggest> getSuggests();
   public List<Summary> getSummarys();
   public List<Report> reports(@Param("state") State state,@Param("user") User user);
   public List<Report> userReports(@Param("user") User user);
}
